package com.zy.studentSide.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.studentSide.dao.StudentClassroomDao;
import com.zy.studentSide.entity.StudentClassroom;
import com.zy.studentSide.service.IStudentClassroomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 29787
 */
@Service
public class IStudentClassroomServiceImpl extends ServiceImpl<StudentClassroomDao, StudentClassroom
        > implements IStudentClassroomService {

    @Autowired
    private StudentClassroomDao studentClassroomDao;

    @Override
    public List<StudentClassroom> getJoinClassroomByStudentId(Integer studentId) {
        return studentClassroomDao.getJoinClassroomByStudentId(studentId);
    }

    @Override
    public StudentClassroom getClassroomByStudentIdAndTeacherIdAndClassroomId(Integer studentId, Integer teacherId, Integer classroomId) {
        return studentClassroomDao.getClassroomByStudentIdAndTeacherIdAndClassroomId(studentId, teacherId, classroomId);
    }
}
